package control.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import control.mapper.authmanage.AuthMapper;
import control.module.po.authmanage.Auth;
import control.service.IAuthService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色权限表 服务实现类
 * </p>
 *
 * @author cyj
 * @since 2020-10-20
 */
@Service
public class AuthServiceImpl extends ServiceImpl<AuthMapper, Auth> implements IAuthService {

    @Override
    public Auth getAuthByAuth(String auth) {
        Auth condition = new Auth().setAuth(auth);
        return this.baseMapper.selectOne(new QueryWrapper<Auth>(condition));
    }
}
